package com.csp.utils;

/**
 * 常量
 * Created by liupengchao on 2017/1/3.
 * @version 1.0
 */
public interface AAContants {

    /**
     * 全局常量
     */
    public static final class globalbase {

        //session 绑定
        public static final String SESSION_LOGIN_USER = "SESSION_LOGIN_USER";

        //管理员
        public static final String SYSMG = "1";
        //客户经理
        public static final String MGMG = "2";
        //商户
        public static final String NORMAL = "3";


        //JPG
        public static final String IMG_JPG = ".jpg";
        //PNG
        public static final String IMG_PNG = ".png";
        //TRUE
        public static final String Z_TRUE= "true";
        //FALSE
        public static final String Z_FALSE= "false";
        //EXIST
        public static final String EXIST= "exist";
        //NO_EXIST
        public static final String NO_EXIST= "noexist";

    }

    /**
     * 返回信息标示
     */
    public static final class tipmsg {

        //成功标志
        public static final String SUCCESS = "1000:操作成功";

        //失败标志
        public static final String FAIL = "1001:操作失败";

        //成功标志
        public static final String MG_SUCCESS = "恭喜您注册成功，请直接使用手机号进行登录!";

        //会话超时
        public static final String SESSION_TIMEOUT = "1002:会话超时";

        //网络异常
        public static final String NET_ERROR = "1003:网络异常";

        //数据库异常
        public static final String DB_ERROR = "1004:程序出现异常";

        //权限不足
        public static final String NO_PERMISSIONS= "1005:权限不足";

        //参数丢失
        public static final String MISS_PARAMS= "1006:参数错误";

        //登陆失败标志
        public static final String LOGIN_FAIL = "1007:账号或者密码错误";

        //数据Empty
        public static final String DATA_EMPTY = "查询数据空!";

    }


}
